import { defineConfig } from '@ice/app';
import icestark from '@ice/plugin-icestark';
import { defineChildConfig } from '@ice/plugin-icestark/types';
// import request from '@ice/plugin-request';
// import store from '@ice/plugin-store';
// import auth from '@ice/plugin-auth';

// The project config, see https://v3.ice.work/docs/guide/basic/config
const minify = process.env.NODE_ENV === 'production' ? 'swc' : false;
export default defineConfig(() => ({
  ssg: false,
  codeSplitting: false,
  minify,
  compileDependencies: false,
  plugins: [
    // 设置应用类型为框架应用 framework
    icestark({ type: 'child' }),
  ],
}));